using System;
using System.Xml;

namespace umlungu.engineX.webX.thoughts.Admin.service {
	/// <summary>
	/// umlungu engineX web framework, handlerX class.
	/// </summary>
	public class Author : SoapX
	{
		/// <summary>Constructor</summary>
		public Author() : base("service", "Author") {
		}
		/// <summary>
		/// Method _Process:: calls delegate(s)
		/// </summary>
		protected override void _Process(XmlDocument xmldom, profileX profile, contentX content) {
			_Debug("Author._Process(", Process, ") profile:", profile.Xml.InnerXml);
			_Debug("Author._Process(", Process, ") content:", content.Xml.InnerXml);
			switch (Process) {
				case "List":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorList));	break;
				case "Edit":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorEdit));	break;
				case "Add":			ProcessResult(new ProcessServiceResult(Handlers.processAuthorAdd));		break;
				case "Delete":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorDelete));	break;
				case "GetBlog":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorGetBlog));	break;
				case "AddBlog":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorAddBlog));	break;
				case "GetAdd":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorGetAdd));	break;
				case "GetEdit":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorGetEdit));	break;
				case "GetDel":		ProcessResult(new ProcessServiceResult(Handlers.processAuthorGetDel));	break;
			}
			_Debug("Author._Process(", Process, ") profile:", profile.Xmldoc.OuterXml);
		}
	}
}
		
